package com.whut;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;


/**
*@author fuzhenjie
*@date 2019/10/17 下午9:31
 * springboot 启动
*/
@SpringBootApplication
@MapperScan("com.whut.mapper")
public class HotelManagementApplication {

    public static void main(String[] args) {
        SpringApplication.run(HotelManagementApplication.class, args);
    }

}


/**
*@author fuzhenjie
*@date 2019/10/17 下午9:33
 * tomcat启动
*/
/*@SpringBootApplication
@MapperScan("com.whut.mapper")
public class HotelManagementApplication extends SpringBootServletInitializer{
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(HotelManagementApplication.class);
    }
    public static void main(String[] args) {
        SpringApplication.run(HotelManagementApplication.class, args);
    }


}*/
